#ifndef __SLOTHTTPD_CONFIG_FCGI_APP_HPP__
#define __SLOTHTTPD_CONFIG_FCGI_APP_HPP__

#include <slothttpd/fcgi/application.hpp>

#include <cstdint>
#include <string>
#include <ostream>

#include <boost/shared_ptr.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/asio/local/stream_protocol.hpp>

namespace slothttpd {
namespace config {

class configuration;

class fcgi_app;
typedef boost::shared_ptr<fcgi_app> fcgi_app_ptr;

class fcgi_app :
        public fcgi::application
{
public:
    fcgi_app(const boost::property_tree::ptree &node, configuration &c);
    
public:
    configuration   &conf;
    
    std::string name;
    std::string path;
};

std::ostream &operator<<(std::ostream &os, const fcgi_app &app);

}
}

#endif
